<?php

namespace app\middleware;

use framework\libraries\Stdio;
use framework\support\Redis;
use framework\support\Response;

class auto
{
    function before()
    {
        $ip = request()->getRealIp();
        if ($ip != '127.0.0.1') {
            Response::Error(403, "只允许本机访问");
            return false;
        }
    }
}
